package com.ham.mud.commands;

import com.ham.mud.ServerConnection;
import com.ham.mud.state.edit.EditState;

/**
 * Created by hlucas on Jun 21, 2011 at 3:54:10 PM
 */
public class EditCommand extends PlayerCommand {
    @Override
    public void execute(ServerConnection connection, String[] params) {
        connection.printSolo("Changing to edit mode.");
        connection.printStart("-----------------------------");
        connection.println("---- YOU ARE NOW EDITING ----");
        connection.println("-----------------------------");
        connection.println();
        connection.changeState(new EditState(connection));
    }

    @Override
    protected String getCommandName() {
        return "edit";
    }
}
